#include <stdio.h>

void strmcpy(char *t, int m, char *s);

int main()
{
    char t[20], s[20];
    int m;

    scanf("%d\n", &m);
    gets(t); 
    strmcpy(t, m, s);
    printf("%s\n", s);

    return 0;
}

void strmcpy(char *t, int m, char *s)
{
	m -= 1;
    int i = 0;
    while (t[m] != '\0')
    {
        s[i++] = t[m++];
    }
    s[i] = '\0';
}

